package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.CarPackageAudit;
import cn.wolfcode.car.business.query.CarPackageAuditQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CarPackageAuditMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CarPackageAudit carPackageAudit);

    CarPackageAudit selectByPrimaryKey(Long id);

    List<CarPackageAudit> selectAll();

    int updateByPrimaryKey(CarPackageAudit carPackageAudit);

    List<CarPackageAudit> selectForList(CarPackageAuditQuery qo);

    void updateInstanceId(@Param("carPackageAuditId") Long id, @Param("processInstanceId") String processInstanceId);

    void updateStatus(@Param("carPackageAuditId") Long id,@Param("auditStatus") Integer status);

    void updateAuditorId(@Param("carPackageAuditId") Long id,@Param("auditorId") Long auditorId);

    void updateInfo(@Param("carPackageAuditId") Long id,@Param("info") String info);

    void updateAuditTime(@Param("carPackageAuditId") Long id,@Param("auditTime") Date date);
}